package main

import (
	"gitee.com/wu-jin-feng/kinfu/fgin"
	"github.com/gin-gonic/gin"
)

func main() {
	f := fgin.Fgin{}
	r := f.GetHttpServer("./test.yaml")
	logger := f.GetFginLogger()
	r.GET("/haha", func(ctx *gin.Context) {
		logger.Info("aiaiaia")
		fgin.ReturnJson(ctx, 200, "success", nil)
	})
	f.Run(r)
}
